package com.coolwen.service;

import com.coolwen.entity.*;

import java.util.List;

/**
 * Created by user on 2016/7/29.
 */
public interface OrdersService {
    public void add(Orders orders, User user, int aid, List<CartProduct> cps);

    public void delete(int id);

    public void update(Orders orders);

    public void updatePrice(int id, double price);

    public void updatePayStatus(int id);

    public void updateSendStatus(int id);

    public void updateConfirmStatus(int id);

    public Orders load(int id);

    public Pager<Orders> findByUser(int userId, int status);

    public Pager<Orders> findByStatus(int status);

    public void addCartProduct(CartProduct cp, Orders o, Product p);

    public void deleteCartProduct(int oid);
}
